//
//@File    :	5.12_compstr2.cpp
//@Time    :	2021/08/06 17:51:11
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	comparing strings using arrays
//

#include <string>
#include <iostream>

using namespace std;
int main()
{
    string word = "?ate";
    for (char ch = 'a';word != "mate"; ch++)
    {
        cout<<word<<endl;
        word[0] = ch;
    }
    cout<<"After loop ends,word is "<<word<<endl;
    system("pause");
    return 0;
}